﻿@model ShareControllerModel.Index
<div class="page">
    <div class="pageHeader">
        <form id="pagerForm" onsubmit="return navTabSearch(this);" action="/auction/share"
        method="GET">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        用户名或Id：</label>
                    <input name="keyword" type="text" maxlength="40" value="@Model.Keyword" />
                </li>
                <li>
                    <label>
                        拍品Id：</label>
                    <input name="auctionId" type="text" maxlength="6" value="@Model.AuctionId" />
                </li>
                <li>
                    <label>
                        审核状态：
                    </label>
                    <select name="Status">
                        <option value="" @(!Model.Status.HasValue ? "selected=selected" : string.Empty) >请选择</option>
                        <option value="0" @(Model.Status.HasValue && Model.Status.Value == AuctionShareStatus.Pending ? "selected=selected" : string.Empty) >
                            未审核</option>
                        <option value="2" @(Model.Status.HasValue && Model.Status.Value == AuctionShareStatus.Authenticated ? "selected=selected" : string.Empty) >
                            审核通过</option>
                        <option value="1" @(Model.Status.HasValue && Model.Status.Value == AuctionShareStatus.Unsanctioned ? "selected=selected" : string.Empty) >
                            审核未通过</option>
                    </select>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        </form>
    </div>
    <div>
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="delete" href="/auction/home/detail/{param}" target="dialog" title="详细信息"
                    mask="true" width="900" height="500" onclick="javascript:void(0);"><span>详细信息</span></a></li>
                <li><a class="delete" href="/auction/bidding/history/{param}" target="dialog" title="出价记录"
                    mask="true" width="1200" height="700" onclick="javascript:void(0);" rel="/auction/bid/history/">
                    <span>出价记录</span></a></li>
            </ul>
        </div>
        <table class="table" layouth="138" width="100%">
            <thead>
                <tr>
                    <th width="40">
                        Id
                    </th>
                    <th width="180">
                        用 户
                    </th>
                    <th width="250">
                        拍 品
                    </th>
                    <th>
                        感 言
                    </th>
                    <th width="200">
                        奖 励
                    </th>
                    <th width="60">
                        竞得价
                    </th>
                    <th width="60">
                        市场价
                    </th>
                    <th width="130">
                        竞得时间
                    </th>
                    <th width="60">
                        审核状态
                    </th>
                    <th width="130">
                        晒图时间
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var o in Model.AuctionShares)
                {
                    <tr target="param" rel="@o.Id">
                        <td>@(o.Id)
                        </td>
                        <td>
                            （@o.UserId）@o.CreatedBy
                        </td>
                        <td>
                            （@o.AuctionId）@o.AuctionName
                        </td>
                        <td>@o.Message
                        </td>
                        <td>@o.Reward
                        </td>
                        <td>@o.BidPrice
                        </td>
                        <td>@o.MarketPrice
                        </td>
                        <td>@o.Status
                        </td>
                        <td>
                            @o.FinishedOn.ToString("yyyy-MM-dd HH:mm:ss")
                        </td>
                        <td>
                            @o.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
